apiVersion: config.istio.io/v1alpha2
kind: DestinationPolicy
metadata:
  name: <%= app.baseName.toLowerCase() %>-dp
  namespace: <%= kubernetesNamespace %>
spec:
  destination:
    namespace: <%= kubernetesNamespace %>
    name: <%= app.baseName.toLowerCase() %>
    labels:
      version: "1.0"
  loadBalancing:
    name: RANDOM
  circuitBreaker:
    simpleCb:
      maxConnections: 30
      httpMaxRequests: 100
      httpMaxRequestsPerConnection: 5
      httpConsecutiveErrors: 5
      sleepWindow: 2m
      httpDetectionInterval: 10s
